the sharing/activity button was supposed to be hidden, but a later
change forgot to adapt the variable used for querying the file metadata
so it never could determine the e2e-status
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
// If this is an E2EE file or folder, pretend we got no path, hiding the share button which is what we want
if (folder) {
SyncJournalFileRecord rec;
- if (!folder->journalDb()->getFileRecord(fileName.mid(1), &rec)) {
+ if (!folder->journalDb()->getFileRecord(relPath.mid(1), &rec)) {
qCWarning(lcActivity) << "could not get file from local DB" << fileName.mid(1);
}
if (rec.isValid() && (rec.isE2eEncrypted() || !rec._e2eMangledName.isEmpty())) {